package com.powernode.service;

import com.powernode.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author Juice
 * @since 2023-02-09
 */
public interface OrderService extends IService<Order> {

    /**
     * 创建订单
     */
    Order createOrder(Order order);

    /**
     * 预览订单信息
     */
    Order previewOrder(Map<Long,Integer> map);

}
